Hello,
I try build a model to model transformation from IFML model to HTML model.
I'd like to use ATL from Eclipse to achieve that.
My problem is that ATL uses Ecore or MOF-based model as inputs. The output is a XMI file.
I'd like to use the open source IFML graphical Editor based on Eclipse/Sirius to build my IFML model.
I have designed a very simple diagram (A window that contains a list). The result is :
<?xml version="1.0" encoding="ASCII"?>
<core:IFMLModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:core="http://www.omg.org/spec/20130218/core" xmlns:ext="http://www.omg.org/spec/20130218/ext" id="_QUt2cC5SEeeYytmEL6-6sA">
<interactionFlowModel id="_VhtfwC5SEeeYytmEL6-6sA">
<interactionFlowModelElements xsi:type="ext:IFMLWindow" id="_VhtfwS5SEeeYytmEL6-6sA" name="Window">
<viewElements xsi:type="ext:List" id="_VxfoMC5SEeeYytmEL6-6sA" name="List"/>
</interactionFlowModelElements>
</interactionFlowModel>
<domainModel id="_QUt2cS5SEeeYytmEL6-6sA"/>
</core:IFMLModel>
This is the source of the model.core file that contains the diagram.
It is a XML document that doesn't use the XMI format.
Let's consider this element : "interactionFlowModelElements". It is not part of the IFML metamodel (due to the 's' at the end of the word)
I'd like to have something like that (that is understandable for ATL):
<IFMLWindow>
<List />
</IFMLWindow>
Is there a way to produce a XMI or EMF compliant file from an IFML diagram designed with the Eclipse editor ?
Thank you !